package com.wksc.framework.impexp.pattern;


import com.wksc.framework.impexp.constants.PatternType;

/**
 * <p> Title(文件名): PatternFactory.java </p>
 * <p> Description(描述): TODO </p>
 * <p> Copyright(版权): Copyright (c) 2011 </p>
 * <p> Company(公司): 成都四方信息技术有限公司 </p>
 * <p> CreateTime(生成日期)：2011-11-22下午04:44:25 </p>
 * @author wanglei
 * @version impExp
 */
public class PatternFactory {
	public static FormatPattern getFormatPattern(PatternType type){
		switch (type) {
		case ACTIVE:
			return ActivePattern.getINSTANCE();
		case DATE:
			return DatePattern.getINSTANCE();
		case EXCLUD:
			return ExcludePattern.getINSTANCE();
		case SHOW_CONTENT:
			return ShowContentPattern.getINSTANCE();
		default:
			return DefaultPattern.getINSTANCE();
		}
	}
}
